package com.example.rpinfrastructure.gateway.impl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.rpclient.dto.query.UserListByParamQuery;
import com.example.rpdomain.user.UserEntity;
import com.example.rpinfrastructure.gateway.impl.dataobject.UserDB;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Pattern;

/**
* @author 是英健啊
* @description 针对表【bld_user】的数据库操作Mapper
* @createDate 2023-07-30 16:52:47
* @Entity com.example.rpuser.domain.user
*/
public interface userMapper extends BaseMapper<UserDB> {

    UserDB findByUserName(@Param("id") Long id,@Param(("username")) String username);


    IPage<UserDB> listByParamQuery(@Param("page") Page<UserEntity> userEntityPage, @Param("query") UserListByParamQuery query);
}




